<?php
require_once( "include/config.php" );
require_once( "include/smarty.php" );
//require_once( glPath."/libs/adodb_lite/adodb.inc.php" );





function sql( $statement, $typ=NULL ) {
	mysql_connect( glSqlHost, glSqlUser, glSqlPass ) or die( "Error: mysql_connect" );
	mysql_select_db( glSqlName ) or die( "Error: mysql_select_db" );
	$res = mysql_query( $statement ) or die("Error in statement: $statement");  //or die
	return $res;
}
function getMenue($id) {
    $retVal = "";
    
    $smarty = new mySmarty();
    $smarty->assign("id", $id );
    $retVal = $smarty->fetch(glPath.'/include/templates/menue.htm');
    return $retVal;
}

?>